				<form id="mainform" action="">
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th class="table-header-check"><a id="toggle-all" ></a> </th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Tên bài viết</a>	</th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Chủ đề</a></th>
					<th class="table-header-repeat line-left"><a href="">Người đăng</a></th>
					
					<th class="table-header-repeat line-left"><a href="">Ngày đăng</a></th>
					<th class="table-header-repeat line-left"><a href="">Lượt xem</a></th>
					<th class="table-header-repeat line-left"><a href="">Kiểm duyệt</a></th>
					<th class="table-header-repeat line-left"><a href="">Tóm tắt</a></th>
					<th class="table-header-options line-left"><a href="">Options</a></th>
				</tr>
				
				
<?php
	foreach($this->tintuc as $tintuc)
	{
		$id = $tintuc->getId();
		$tenbaiviet = $tintuc->getTenbaiviet();
		
		$chude= $tintuc->getTenchude();
		$tenchude = $chude->getTenchude();
		
		$nguoidung = $tintuc->getNguoidung();
		$tennguoidang = $nguoidung->getTennd();
		
	
		$ngaydang = $tintuc->getNgaydang();
		$luotxem = $tintuc->getLuotxem();
		$kiemduyet = $tintuc->getKiemduyet();
		$tomtat = $tintuc->getTomtat();
		$linkEdit = $this->baseUrl('/admin/tintuc/capnhat/id/'. $id);
		$linkDelete = $this->baseUrl('/admin/tintuc/xoa/id/'. $id);
		$linkView = $this->baseUrl('/admin/tintuc/xem/id/'.$id);
?>
	<tr>
					<td><input  type="checkbox"/></td>
					<td><?php echo $tenbaiviet?></td>
					<td><?php echo $tenchude?></td>
					<td><a href=""><?php echo $tennguoidang?></a></td>
					
					<td><?php echo $ngaydang?></td>
					<td><?php echo $luotxem?></td>
					<td><?php echo $kiemduyet?></td>
					<td><?php echo $tomtat?></td>
					<td class="options-width">
					<a href="<?php echo $linkView?>" title="Edit" class="icon-1 info-tooltip">View</a>
					<a href="<?php echo $linkEdit?>" title="Edit" class="icon-1 info-tooltip">Edit</a>
					
					<a href="<?php echo $linkDelete?>" title="Edit" class="icon-2 info-tooltip">Delete</a>
					<a href="" title="Edit" class="icon-3 info-tooltip"></a>
					<a href="" title="Edit" class="icon-4 info-tooltip"></a>
					<a href="" title="Edit" class="icon-5 info-tooltip"></a>
					</td>
				</tr>
<?php
			
	} 
?>
			</table>
				<!--  end product-table................................... -->
				</form>
